import { get, post, del, put } from "../http";
const api_name = '/admin/acl/permission'

export const getNestedTreeList = () => get(`${api_name}`)
export const removeById = (id) => del(`${api_name}/remove/${id}`)
export const saveLevelOne = (menu) => post(`${api_name}/save`, menu)
export const update = (menu) => put(`${api_name}/update`, menu)
export const toAssign = (roleId) => get(`${api_name}/toAssign/${roleId}`)
export const doAssign = (roleId, permissionId) => post(`${api_name}/doAssign`, { roleId, permissionId })





